home *** CD-ROM | disk | FTP | other *** search
- The Galaxy Software Registration DB OLE Server DLL allows the developer to
- access the registration database using the standard object syntax that all
- Visual Basic programmers have become accustomed to. This OLE DLL was
- created with Microsoft Visual Basic 4.0 Professional Edition and has been
- tested under Microsoft Windows 95. It should also function under Microsoft
- Windows NT 3.51 although this capability has not been tested.
-
- Note: To see a listing of the required parameters for each method and
- property please refer to the Object Browser on the View menu in
- the Visual Basic IDE interface.
-
- ===========================================================================
- Installation:
-
- To install this product on your computer all you need to do is run the
- setup program.
- 1) In Windows 95 click on the start menu and select run.
- 2) Type X:\Setup.exe or click Browse and find setup.exe.
- 3) Click on the OK button.
-
- To uninstall this product
- 1) In Windows 95 click on the start menu and select Settings.
- 2) Select the Control Panel option.
- 3) In control panel double click on Add/Remove Programs.
- 4) Select GalaxySoft Registration DB OLE Server and click remove.
-
- ===========================================================================
- The Registration DB OLE DLL contains the following objects:
-
- Object Description
- ------ -----------------------------------------------------------
- RegStr Allows access to string values.
- RegInt Allows access to integer values.
- RegLng Allows access to long integer values.
- RegSgl Allows access to floating point single values.
- RegDbl Allows access to floating point double values.
-
- ===========================================================================
- Each of the above objects contain the following methods:
-
- Method Description
- ----------------- ---------------------------------------------------
- obj.Register Register the object to the specified HKey, section,
- and key. Also allows you to specify a default
- value.
- obj.RemoveKey Deletes the registered key from the registration
- database. Generates run-time error if the key does
- not exist.
- obj.RemoveSection Deletes the registered section and all associated
- keys from the registration database. Generates a
- run-time error if the section does not exist.
-
- ===========================================================================
- Each of the above objects contain the following properties:
-
- Property Description
- ----------- ---------------------------------------------------------
- obj.HKey Returns the HKey that was set in the Register method. The
- return data type is long. Valid HKey's are HKEY_USERS,
- HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, HKEY_LOCAL_MACHINE.
- (read-only)
- obj.Section Returns the section that was set in the Register method.
- The return data type is string. (read-only)
- obj.Key Returns the key that was set in the Register method.
- The return data type is string. (read-only)
- obj.Default Returns the default value that was set in the Register
- method. The return data type is determined by the object
- type. Ex: RegDbl returns double, RegStr returns string.
- (read-only)
- obj.Value Sets or returns the value for the HKey, section, and key
- set in the Register method. The data type is determined
- by the object type. Ex: RegInt is integer, RegLng is
- long. This property will return the default value if the
- specified HKey, section, or key cannot be found.
- obj.Version Returns the version number of the object. The return
- data type is string. (read-only)
-
- ===========================================================================
- The INI File OLE Server DLL traps and throws the follwing error conditions:
-
- Constant Value Description
- ---------------------------- ----- ---------------------------
- gknRSErrInvalidSection 1001 This error occurs if an
- empty string is provided
- for the section in the
- Register method.
- gknRSErrInvalidKey 1002 This error occurs if an
- empty string is provided
- for the key in the Register
- method.
- gknRSErrRegBaseNotRegistered 1003 This error occurs if any of
- the properties except for
- Version are accessed before
- the Register method is
- invoked.
- gknRSErrInvalidHKey 1004 This error occurs if an
- HKey other than HKEY_USERS,
- HKEY_CURRENT_USER,
- HKEY_CLASSES_ROOT, or
- HKEY_LOCAL_MACHINE is
- specified.
- gknRSErrRemoveKey 1005 This error occurs if the
- specified key does not
- exist.
- gknRSErrRemoveSection 1006 This error occurs if the
- specified section does not
- exist.
- gknRSErrSetValue 1007 This error occurs if the
- specified key cannot be set
-
- Per Microsoft recomendations the returned error values will be the value
- shown in the table above plus the vbObjectError constant from Visual Basic.
-
- These constants are defined in the RegConst.bas file.
-
- ===========================================================================
- Examples:
-
- Before using a registration DB object you must first create the object.
- An example is shown below.
-
- Private moRegStr As New RegDBServer.RegStr
-
- Now that you have an object variable defined you must use the Register
- method to initialize it to a specific HKey, section and key.
-
- moRegStr.Register sSection, sKey, lHKey, sDefault
-
- Note: The Register method also has a 5th parameter of type boolean.
- If TRUE this parameter forces the value to be obtained from
- the registration DB each time the Value property is read. If
- FALSE the value is read from the registration DB only the
- first time the Value property is read. The default for this
- parameter is FALSE.
- Note: The Register method can be called multiple times on the same
- object. This procedure just reinitializes the existing Reg
- DB object and does not create a new object.
-
- Now you can access the other methods and properties as required.
-
- sValue = moRegStr.Value 'Get the value of the specified key.
- moRegStr.Value = sValue 'Set the value of the specified key.
-
- lHKey = moRegStr.HKey 'Get the registered HKey.
- sSection = moRegStr.Section 'Get the registered section name.
- sKey = moRegStr.Key 'Get the registered key name.
- sDefault = moRegStr.Default 'Get the registered default value.
- sVersion = moRegStr.Version 'Get the version number of the object.
-
- moRegStr.RemoveSection 'Deletes the registered section and all
- 'associated sub-sections and keys from
- 'the registration database.
- moRegStr.RemoveKey 'Deletes the registered key from the
- 'registration database.
-
- ===========================================================================
- Technical Support:
-
- You can contact Galaxy Software for technical support, questions or comment
- by any of the following methods:
-
- Snail Mail: Galaxy Software
- 7044 St. Joe Road
- Fort Wayne, IN 46835
-
- E-Mail:
- Internet: galaxysoft@msn.com
- AOL: GalaxySoft
- MSN: GalaxySoft
- Compuserve: 102167,2656
-
- World Wide Web: http://users.aol.com/galaxysoft/
-
- ===========================================================================
- Legal stuff:
-
- The Galaxy Software Registration DB OLE Server DLL is copyrighted SHAREWARE
- This is not freeware and cannot be redistributed as a component of your
- projects until you have registered the product. You are free to evaluate
- this product for 30 days after which if you intend to continue using it you
- will be required to register. You are free to distribute this product to
- other developers for eavaluation purposes only and only if the entire
- package is intact as when it was recieved by you. Please refer to
- register.txt for information on registering this product.
-
- Copyright ⌐ 1996 - Galaxy Software
-